<?php

class StaticController extends Controller
{

  public $layout = 'column2';

  /**
   * @var CActiveRecord the currently loaded data model instance.
   */
  private $_model;

  /**
   * @return array action filters
   */
  public function filters()
  {
    return array(
        'accessControl', // perform access control for CRUD operations
    );
  }

  /**
   * Specifies the access control rules.
   * This method is used by the 'accessControl' filter.
   * @return array access control rules
   */
  public function accessRules()
  {
    return array(
        array('allow', // allow all users to access 'index' and 'view' actions.
            'actions' => array('law', 'view', 'list', 'match', 'addmatch', 'rank','rankAjax', 'chart'),
            'users' => array('*'),
        ),
        array('allow', // allow authenticated users to access all actions
            'users' => array('@'),
        ),
        array('deny', // deny all users
            'users' => array('*'),
        ),
    );
  }

  /**
   * Lists all models.
   */
  public function actionLaw()
  {
    $this->render('law', array(
    ));
  }



}
